import request from "@/utils/request";

// 获取入库记录列表
export const getInvRecordList = (data) => {
  return request({
    url: "/order/in/list",
    method: "post",
    data
  });
};

// 入库登记
export const addOrder = (data) => {
  return request({
    url: "/order/in/add",
    method: "post",
    data
  });
};

// 根据id查询耗材信息
export const getOrderInfo = (data) => {
  return request({
    url: "/order/get",
    method: "post",
    data
  });
};

// 出入库订单审核
export const orderVerify = (data) => {
  return request({
    url: "/order/verify",
    method: "post",
    data
  });
};

// 出入库取消订单
export const orderCancel = (data) => {
  return request({
    url: "/order/cancel",
    method: "post",
    data
  });
};

// 出入库取消订单审核
export const orderCancelVerify = (data) => {
  return request({
    url: "/order/cancelVerify",
    method: "post",
    data
  });
};